package com.hubu.exceptions;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author xiedi
 * @Date: 2022/10/18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class KgException extends RuntimeException{
    /**
     * 状态码
     */
    private Integer code;

    /**
     * 异常信息
     */
    private String msg;
    public KgException(String message){
        this.setMsg(message);

    }
}
